﻿using System;

namespace Moonlite.Data.Configuration.Implementation
{
    internal class MoonliteConfigurationInstance : ConfigurationInstance
    {
        public static readonly Type Type = typeof(MoonliteConfigurationInstance);
        private static MoonliteConfigurationInstance instance;

        public static MoonliteConfigurationInstance Instance
        {
            get { return instance; }
        }

        public override string Name
        {
            get { return "Configuration"; }
        }

        public override Type[] AllowedElementTypes
        {
            get
            {
                return new Type[] {
                    MoonliteGeneralConfigurationElement.Type,
                    MoonliteBuildConfigurationElement.Type,
                    MoonliteTextEditorConfigurationElement.Type,
                };
            }
        }

        protected MoonliteConfigurationInstance()
            : base()
        {
            instance = this;
        }
    }
}
